package main

import (
	"fdfs/route"
	"fdfs/upload"
	"log"
	"net/http"
)


func main() {
	log.Println("文件服务器启动...")
	http.HandleFunc(upload.GetUploadUrl(), route.UploadRoute)
	http.HandleFunc("/", route.ImageRoute)
	err := http.ListenAndServe(upload.ConfigJson.Port, nil) //设置监听的端口
	if err != nil {
		log.Fatal("ListenAndServe: ", err)
	}
}
